package system;

import java.util.Arrays;

public class SystemArrayCopyDemo {

    public static void main(String[] args) {
        int[] arr1 = {1,2,3,4,5,0,0,0,0,0};
        int[] arr2 = {6,7,8,9,10};

        System.arraycopy(arr2,0,arr1,arr1.length-5,arr2.length);

        System.out.println(Arrays.toString(arr1));
    }
}
